//
//  UILabel+Extension.swift
//  SinaWeiBo
//
//  Created by 毛强 on 16/1/13.
//  Copyright © 2016年 itheima. All rights reserved.
//

import UIKit

extension UILabel{
    convenience init(textColor:UIColor, fontSize:CGFloat){
        self.init()
        self.textColor = textColor
        self.font = UIFont.systemFontOfSize(fontSize)
    }
}

extension UIButton{
    convenience init(textColor:UIColor, fontSize:CGFloat){
        self.init()
//        self.setTitleColor(textColor, )
        self.setTitleColor(textColor, forState:.Normal)
        self.titleLabel?.font = UIFont.systemFontOfSize(fontSize)
    }
}